﻿package com.smart.events.hardware {		import flash.events.Event;	import funnel.*;		public class Funneluino {				static private var _instance:Funneluino;		private var _uino:Arduino;				public function Funneluino(singletonEnforcer:SingletonEnforcer) {			var config:Configuration = Arduino.FIRMATA;					_uino = new Arduino(config);			_uino.addEventListener(FunnelEvent.READY, trace);			_uino.addEventListener(FunnelErrorEvent.REBOOT_ERROR, trace);			_uino.addEventListener(FunnelErrorEvent.CONFIGURATION_ERROR, trace);			_uino.addEventListener(FunnelErrorEvent.ERROR, trace);		}				public static function getInstance():Funneluino {			if(Funneluino._instance == null) {				Funneluino._instance = new Funneluino(new SingletonEnforcer());			}			return Funneluino._instance;		}				public function get uino():Arduino {			return _uino;		}			}}class SingletonEnforcer {}